(be) ace up (someone's) sleeve

Translations
avoir un atout dans sa manche
Definitions
To have an ace up someone's sleeve means to possess a secret advantage, resource, or strategy that can be used to gain an edge over others, especially when it is unexpected.